package com.xnyzc.lhy.resource.feign.worksheet;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.order.entity.mq.OaCOrderPersonal;
import com.xnyzc.lhy.resource.entity.worksheet.param.DetectionToken;
import com.xnyzc.lhy.resource.feign.fallback.worksheet.OaAuthServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 * 工单信息表 服务类
 * </p>
 *
 * @author haoyfa
 * @since 2019-11-07
 */
@FeignClient(name = "${feign.applicationName.order}", fallback = OaAuthServiceFallback.class)
public interface IOaAuthService {
    /**
     * 验证用户token是否正确
     *
     * @return
     */
    @PostMapping("oa/auth/detectionToken")
    public Rv getDetectionToken(DetectionToken loginToken);

    /**
     * 查询订单信息
     *
     * @param orderNo 订单号
     * @return
     */
    @PostMapping("/oa/dapi/order/billDetails")
    OaCOrderPersonal billDetails(@RequestParam("orderNo") String orderNo);
}
